package com.lqd.demo.springboot.orm.dataJPA.repository;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;
import com.lqd.demo.springboot.orm.dataJPA.bean.UserLoginLog;

public interface IUserLoginLogPageCrudRepository extends PagingAndSortingRepository<UserLoginLog, Integer>{

	public UserLoginLog findByUsername(String userName);
	
	//UserLoginLog 映射表
	@Query("from UserLoginLog where username=:name")
	public UserLoginLog findByMyUsername(@Param("name") String userName);
}
